/* 自定义样式 */
.custom-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.function-option {
    transition: all 0.2s ease;
}

.function-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.function-option.selected {
    background-color: #eff6ff;
    border-color: #3b82f6;
}

/* 输入框和文本域焦点效果 */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 文本域样式 */
textarea {
    font-family: inherit;
    line-height: 1.5;
    min-height: 100px;
}

textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* 下拉框样式增强 */
select {
    cursor: pointer;
    transition: all 0.2s ease;
}

select:hover {
    border-color: #3b82f6;
    background-color: #f8fafc;
}

select:focus {
    border-color: #3b82f6;
    background-color: white;
}

/* 自定义下拉框箭头样式 */
select::-ms-expand {
    display: none;
}

/* 字符计数器样式 */
#charCount {
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 按钮点击效果 */
button:active {
    transform: scale(0.98);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
    .text-3xl, .md\:text-3xl {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }
    #outputNumber {
        font-size: 1rem !important;
        line-height: 1.5rem !important;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 历史记录表格内容适配 */
.history-cell {
    font-size: 12px;
    max-width: 120px;
    max-height: 3.5em;
    overflow: hidden;
    word-break: break-all;
    white-space: pre-line;
}
@media (max-width: 768px) {
    .history-cell {
        font-size: 11px;
        max-width: 80px;
        max-height: 2.5em;
    }
} 